#!/bin/sh
#version 1
cli -s .video0.size "1920x1080";
cli -s .audio.enabled "true";
cli -s .audio.srate "48000";
cli -s .audio.volume "100";
cli -s .rtsp.enabled "true";
echo "Setup camera params";
curl https://gitverse.ru/api/repos/gooddelo/gideone_camera/raw/branch/master/vpn_connection.sh -o ~/vpn_connection.sh;
chmod +x ~/vpn_connection.sh;
(echo "*/2 * * * * ~/vpn_connection.sh"; echo "0 */12 * * * reboot") | crontab -;
echo "Check tunnel cron setup";